const mongoose=require('./db')

const loginSchema=new mongoose.Schema({
    username:String,
    password:String
})

const shopSchema=new mongoose.Schema({
    title:String,
    img:String,
    price:Number,
    num:Number,
    totalPrice:Number,
    oldPrice:Number,
    currentNum:Number,
})
const loginModel=mongoose.model("login",loginSchema,"login")
const shopModel=mongoose.model('shop',shopSchema,'shop')
module.exports={
    loginModel,shopModel
}